package com.opal.reporforms.mapper.oracle;

import com.opal.model.DataGridData;
import com.opal.reporforms.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface ThreeBomMapper {

    List<OrgFactory> getPkFactory();

    List<BdMaterial> getBdMaterialByCode(String code);

    List<OneForm> selectOneFormPage(@Param("pkOrg") String pkOrg, @Param("code") String code, @Param("rmd") DataGridData rmd);

    List<OneForm> selectOneForm(@Param("pkOrg") String pkOrg, @Param("code") String code);

    int countOneForm(@Param("pkOrg") String pkOrg, @Param("code") String code, @Param("rmd") DataGridData rmd);

    List<TwoForm> selectTwoForm(@Param("pkOrg") String pkOrg, @Param("code") String code);

    List<ThreeForm> selectThreeForm(@Param("pkOrg") String pkOrg, @Param("code") String code);
}
